# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
#platform :ios, '12.0'

target 'FrameProduct' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  pod 'Alamofire', '~> 5.0'
  pod 'Moya'
  pod 'ObjectMapper'
  pod 'SwiftyJSON'
  pod 'HandyJSON'
  pod 'Kingfisher'#, '~> 5.15.7'
  pod 'DeviceKit'
  pod 'R.swift'
  pod 'Then'
  pod 'MJRefresh'
  pod 'MBProgressHUD',:git => 'https://github.com/jdg/MBProgressHUD.git', :commit => '18c442d57398cee5ef57f852df10fc5ff65f0763'
  pod 'TZImagePickerController'
  pod 'SnapKit'
  pod 'KeychainAccess'
  # 键盘
  pod 'IQKeyboardManagerSwift'
  pod 'YYText', '~> 1.0.4'
  # 弹框
  pod 'SwiftMessages'
  # bug记录
  pod 'Bugly'
  pod 'FLEX', '5.22.10', :configurations => ['Debug']
  pod 'HXPhotoPicker/Picker'
end
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
            config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
        end
    end
end



##################################################分割线##############################################################################
#post_install do |installer|
#  # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
#  Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
#  
#  headers_path = "#{Dir::pwd}/Pods/"
#  puts "打印根路径#{headers_path}"
#  
#  installer.pods_project.targets.each do |target|
#    
#    target.build_configurations.each do |config|
#      config.build_settings['ENABLE_BITCODE'] = 'YES'
#    end
#    
#  end
#  
#  installer.generated_projects.each do |project|
#    project.targets.each do |target|
#      target.build_configurations.each do |config|
#        # 修复Xcode14 Pod工程中的Bundle target签名报错
#        config.build_settings['CODE_SIGN_IDENTITY'] = ''
#      end
#    end
#  end
#  installer.pods_project.build_configurations.each do |config|
#       config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
#     end
#  installer.generated_projects.each do |project|
#      project.targets.each do |target|
#          target.build_configurations.each do |config|
#              config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
#           end
#      end
#    end
#end
